#!/usr/bin/env python
# Filename: config.py

import os
from c import FileFilter,dirr,dstdir

allFiles = []

for root, dirs, files in os.walk(dstdir):
	for filepath in files:
		filename = filepath
		filepath = filepath.replace("--",":\\")
		filepath = filepath.replace("-","\\")
		extension = os.path.splitext(filepath)[1][1:]
		if extension in FileFilter:


			path,name = os.path.split(filepath)
			if os.path.exists(path) == False:
				os.makedirs(path)
			if os.path.exists(filepath) == True:
				os.remove(filepath)
			os.system("copy %s %s" %(os.path.join(root,filename), filepath))
			print filepath
